package org.dingfugui.triple.link;

import org.dingfugui.triple.connection.Connection;

import java.io.Closeable;
import java.io.IOException;

/**
 * 连接方式
 * 直连或软负载
 * Created by fugui.ding on 2015/4/2.
 */
public interface Link extends Closeable {

    Connection getConnection();

    void destory(Connection con);

    void close() throws IOException;

}
